package com.freshcity.core
{
	import flash.events.*;
	
	public class Dispatcher
	{
		public function Dispatcher()
		{
		}
		
		public static function addEventListener(arg1:String, arg2:Function, arg3:Boolean=false, arg4:int=0, arg5:Boolean=false):void
		{
			dispatcher.addEventListener(arg1, arg2, arg3, arg4, arg5);
		}
		
		public static function removeEventListener(arg1:String, arg2:Function, arg3:Boolean=false):void
		{
			dispatcher.removeEventListener(arg1, arg2, arg3);
		}
		
		public static function dispatchEvent(arg1:Event):Boolean
		{
			return dispatcher.dispatchEvent(arg1);
		}
		
		public static function hasEventListener(arg1:String):Boolean
		{
			return dispatcher.hasEventListener(arg1);
		}
		
		//static
		{
			dispatcher=new flash.events.EventDispatcher();
		}
		
		private static var dispatcher:IEventDispatcher;
	}
}